-
Notifications
You must be signed in to change notification settings - Fork 646
[Backend Tester] Reduce log verbosity / spam #13312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh/GregoryComer/122/head
Are you sure you want to change the base?
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13312
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 New FailuresAs of commit 780519f with merge base 3a02146 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@@ -39,7 +40,9 @@ def graph_module(self) -> None: | |||
|
|||
def run_artifact(self, inputs): | |||
inputs_flattened, _ = tree_flatten(inputs) | |||
executorch_module = _load_for_executorch_from_buffer(self.buffer) | |||
executorch_module = _load_for_executorch_from_buffer( | |||
self.buffer, program_verification=Verification.Minimal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do? i.e. Minimal ==> "do the verification but don't print warnings"?
@@ -249,6 +250,10 @@ def build_test_filter(args: argparse.Namespace) -> TestFilter: | |||
def runner_main(): | |||
args = parse_args() | |||
|
|||
# Suppress deprecation warnings for export_for_training, as it generates a | |||
# lot of log spam. We don't really need the warning here. | |||
warnings.simplefilter("ignore", category=FutureWarning) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI PyTest has this nice feature where they count same warnings and at the end print warning summary https://docs.pytest.org/en/stable/how-to/capture-warnings.html
When running tests, deprecation warnings for export_for_training and "internal consistency verification was requested but not available" create a large amount of spam in the CLI and drown out actual test info during the run. Neither warning is particularly useful. I've suppressed the the export_for_training warning in the backend tester only and switched the tester to not request internal consistency verification since it's not compiled into pybindings by default. This gives much cleaner CLI output.
Before:
After: